
<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */

/**
 * Gateway for the events
 *
 * @category    RedCross
 * @package     Core_Gateway
 */
class Core_Gateway_Calendar extends RedCross_Gateway_GatewayAbstract
{

    public function __construct()
    {
		$this->_class = 'Calendar';
		$this->_modelPath = 'Core_Model';
    }
    
    public function fetchAllCalendar($paginate = false)
    {
    	$query = Doctrine_Query::create()
            ->select()
            ->from($this->getModelClass() . ' e');

        return $paginate ? new RedCross_Paginator($query) : $query->fetchArray();
    }

    
}
